home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Toolbox / Visual Basic Toolbox (P.I.E.)(1996).ISO / mail / mailx6 / _setup.1 / INBOXFOR.FRM (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1996-03-22  |  3.6 KB  |  127 lines

  1. VERSION 2.00
  2. Begin Form InboxForm 
  3.    BackColor       =   &H00C0C0C0&
  4.    BorderStyle     =   3  'Fixed Double
  5.    Caption         =   "Inbox Messages"
  6.    ClientHeight    =   3030
  7.    ClientLeft      =   1560
  8.    ClientTop       =   4875
  9.    ClientWidth     =   5970
  10.    Height          =   3405
  11.    Left            =   1515
  12.    LinkTopic       =   "Form4"
  13.    MDIChild        =   -1  'True
  14.    ScaleHeight     =   3030
  15.    ScaleWidth      =   5970
  16.    Top             =   4545
  17.    Width           =   6060
  18.    Begin MMsg MMsg1 
  19.       BindString      =   "FormTag2.MSess1"
  20.       BodyAsFile      =   0   'False
  21.       DisplayErrors   =   0   'False
  22.       DisplaySendDialog=   0   'False
  23.       EnvelopeOnly    =   0   'False
  24.       FetchMsgType    =   ""
  25.       Height          =   420
  26.       Left            =   4800
  27.       MarkAsRead      =   0   'False
  28.       SortMsg         =   0   'False
  29.       SuppressAttach  =   -1  'True
  30.       TimeFormat      =   "%I:%M:%S %p. %B %d, %Y "
  31.       Top             =   0
  32.       UnreadOnly      =   0   'False
  33.       Width           =   420
  34.       WorkingMsg      =   0  '0- Inbox Message
  35.    End
  36.    Begin MForm MForm1 
  37.       Height          =   240
  38.       Left            =   2160
  39.       MXFormName      =   "FormTag3"
  40.       Top             =   2280
  41.       Width           =   2295
  42.    End
  43.    Begin CheckBox SortMsg 
  44.       BackColor       =   &H00C0C0C0&
  45.       Caption         =   "Sort Inbox Message"
  46.       Height          =   375
  47.       Left            =   165
  48.       TabIndex        =   5
  49.       Top             =   30
  50.       Width           =   2175
  51.    End
  52.    Begin CheckBox UnreadMsg 
  53.       BackColor       =   &H00C0C0C0&
  54.       Caption         =   "Unread Message Only"
  55.       Height          =   375
  56.       Left            =   2445
  57.       TabIndex        =   4
  58.       Top             =   30
  59.       Width           =   2295
  60.    End
  61.    Begin CommandButton FilterMsg 
  62.       Caption         =   "&Refresh List"
  63.       Height          =   390
  64.       Left            =   3720
  65.       TabIndex        =   3
  66.       Top             =   2505
  67.       Width           =   1815
  68.    End
  69.    Begin CommandButton OpenMsgBtn 
  70.       Caption         =   "&Open Message"
  71.       Height          =   405
  72.       Left            =   1995
  73.       TabIndex        =   2
  74.       Top             =   2490
  75.       Width           =   1695
  76.    End
  77.    Begin CommandButton HideWndBtn 
  78.       Caption         =   "&Hide List"
  79.       Height          =   405
  80.       Left            =   375
  81.       TabIndex        =   1
  82.       Top             =   2490
  83.       Width           =   1575
  84.    End
  85.    Begin ListBox MsgList 
  86.       Height          =   1785
  87.       Left            =   165
  88.       TabIndex        =   0
  89.       Top             =   510
  90.       Width           =   5700
  91.    End
  92. Sub FilterMsg_Click ()
  93.     MMsg1.UnreadOnly = UnreadMsg
  94.     MMsg1.SortMsg = SortMsg
  95.     RefreshList
  96. End Sub
  97. Sub Form_Load ()
  98.     RefreshList
  99. End Sub
  100. Sub HideWndBtn_Click ()
  101.     Unload Me
  102. End Sub
  103. Sub MsgList_DblClick ()
  104.     OpenMsgBtn_Click
  105. End Sub
  106. Sub OpenMsgBtn_Click ()
  107.     Index = MsgList.ListIndex
  108.     If Index = -1 Then
  109.         MsgBox "Select a Mail Message to be opened"
  110.     Else
  111.         MMsg1.FetchMsg = Index + 1
  112.         NewMsgWnd MMsg1
  113.     End If
  114. End Sub
  115. Sub RefreshList ()
  116.     SessionForm.MousePointer = 11
  117.     MsgList.Clear
  118.     MMsg1.Action = ACTION_FINDFIRST
  119.     Do
  120.         If MMsg1.FetchMsg <> 0 Then
  121.             MsgList.AddItem MMsg1.Subject
  122.             MMsg1.Action = ACTION_FINDNEXT
  123.         End If
  124.     Loop While MMsg1.FetchMsg <> 0
  125.     SessionForm.MousePointer = 1
  126. End Sub
  127.